const mongoose = require('../db/db')
const options = {
    versionKey: false,
    autoIndex: true, // auto create indexes
}

const Schema = mongoose.Schema
const orderSchema = new Schema({
        uuid:String,
        date: String,
        name: String,
        price:String,
        phone:String,
        address: String,
        finish:String,
        userId: String,
        delete: String
    },
    options
)

module.exports = mongoose.model('order',orderSchema,'order')